android: Enable building binder as module
authorBen Hutchings <ben@decadent.org.uk>
Tue, 8 Jul 2025 11:30:55 +0000 (13:30 +0200)
committerSalvatore Bonaccorso <carnil@debian.org>
Thu, 12 Mar 2026 12:28:10 +0000 (13:28 +0100)
commit9b81932ff1baae4b708bc586524a2fa160699137
tree4410d763f857a57fe66d19101fea5a7423776dd3
parentb954000d88ddb6fe6fcfa831715d010cb52dd8b2
android: Enable building binder as module

Bug-Debian: https://bugs.debian.org/901492

We want to enable use of the Android binder driver to support
Waydroid, but it should not be built-in as that would waste resources
and increase security attack surface on systems that don't need it.

- Change the Makefiles to build the driver as an object with the
  "_linux" suffix (which is what Waydroid expects)
- Change config symbol types to tristate
- Add a module description, because modpost warns about missing
  descriptions

Gbp-Pq: Topic debian
Gbp-Pq: Name android-enable-building-binder-as-module.patch
drivers/android/Kconfig
drivers/android/Makefile
drivers/android/binder.c
drivers/android/binder_alloc.c